var res = {}
res.success = {
    content:null,
    returnCode:'0000',
    msg:'操作成功',
}
res.fail = {
    returnCode:'0011',
    msg:'操作失败'
}
res.respond = {
    returnCode:'',
    msg:'',
    content:null
}
res.copy = function(source) { //深度复制数组
    var result;
    (source instanceof Array) ? (result = []) : (result = {});

    for(var key in source) {
        result[key] = (typeof source[key] === 'object') ? res.copy(source[key]) : source[key];
    }
    return result;
}
module.exports = res;